home *** CD-ROM | disk | FTP | other *** search
- /*
- * HOOKS.C
- */
-
- /* $VER: $Id: hooks.c,v 1.1 1995/07/21 20:56:14 tf Exp $ */
-
- #ifdef _DCC
-
- #define REG(x) __ ## x
- #define ASM
- #define SAVEDS __geta4
-
- #else /* !_DCC */
-
- #define REG(x) register __ ## x
-
- #if defined __MAXON__ || defined __GNUC__
- #define ASM
- #define SAVEDS
- #else
- #define ASM __asm
- #define SAVEDS __saveds
- #endif /* if defined ... */
-
- #endif /* _DCC */
-
- /*
- * MUI Stuff
- */
-
- SAVEDS ASM char *lv_confunc(
- REG(a0) struct Hook *hook,
- REG(a2) Object *app,
- REG(a1) char *fname )
- {
- /*
- char pattern[80];
- ParsePatternNoCase( "#?.info", pattern, sizeof(pattern) );
- return MatchPatternNoCase(pattern,fname) ? NULL : strdup(fname);
- */
- return strdup(fname);
- }
-
- SAVEDS ASM LONG lv_desfunc(
- REG(a0) struct Hook *hook,
- REG(a2) Object *app,
- REG(a1) char *fname )
- {
- if(fname) free(fname);
- return 0L;
- }
-
-
- #if 0
- SAVEDS ASM LONG lv_selfunc(
- REG(a0) struct Hook *hook,
- REG(a2) Object *app,
- REG(a1) char *fname )
- {
- printf("MultiView \"%s\"\n",fname);
- return 0L;
- }
-
-
- SAVEDS ASM LONG app_aboutfunc(
- REG(a0) struct Hook *hook,
- REG(a2) Object *app,
- REG(a1) APTR dummy )
- {
- return 0L;
- }
- #endif
-